package demo

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func ResponseHtml() {
	gin.SetMode("release")
	Router := gin.Default()
	Router.LoadHTMLGlob("./templates/*")
	// r.LoadHTMLFiles("./views/*")
	Router.GET("/getHtml", func(c *gin.Context) {
		c.HTML(http.StatusOK, "index.html", gin.H{
			"title": "Hello World",
		})
	})

	Router.Run(":8080")
}
